#if HAVE_CONFIG_H
#include "config.h"
#endif

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#define N 32768


int main(int argc, char **argv){
	int df,x;
	int continut;
	char *line;	
	char *buffer;

	df=open(argv[1], O_RDWR|O_APPEND);
	if(df==-1){
		printf("fisierul nu exista sau nu poate fi deschis");
	}
	else{
		buffer="Excelent job. It works\n";
		write(df, buffer, strlen(buffer));
	}
close(df);
}
